package com.kuaidian.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.kuaidian.pojo.Row;
import com.kuaidian.pojo.TPhoto;

public interface TPhotoDaoMapper {

	public int insertPhoto(@Param(value = "photo")TPhoto photo);

	public List<Row> selectHomepage(@Param(value = "user_id")Integer user_id,
								 @Param(value = "startRow")Integer startRow, 	
								 @Param(value = "pageSize")Integer pageSize);

	public List<TPhoto> queryPhotos(@Param(value = "photo")TPhoto photo, 	
									@Param(value = "startRow")int startRow, 
									@Param(value = "pageSize")Integer pageSize);
	
	public int countPhotos(@Param(value = "photo")TPhoto photo);

	public int deletePhoto(@Param(value = "photo")TPhoto photo);
}
